StoreKeeper\WooCommerce\B2C\Frontend\Handlers\ProductAddOnHandler D

Total Complexity 204
Dependencies 11
Dependents 1
Total lines 1,035
Lines of code 813
Logical lines of code 429
Comment lines 15
Methods 38
Properties 1

Methods 38

Method Rating Maintainability Complexity Lines of code
getAddOnsForProduct()
B
33 16 113
getSelectedOptionFromPost()
A
47 14 36
getAddOnsFromApi()
A
39 11 70
addSubitemsToCart()
A
42 12 54
addWcProductsToAddons()
A
46 10 39
addEmballageFee()
A
46 10 38
calculateRequiredAndOptionalPriceChanges()
A
54 11 19
validateCartItemAddQuantity()
A
46 9 39
renderAddOnFormOnProductPage()
A
47 9 35
renderPriceCalculationJsScriptOnProductPage()
S
49 6 32
getAddOnsFromApiWithWcProducts()
S
51 6 27
validateCartItemQuantityUpdate()
S
54 6 21
copyCartItemDataToOrderItem()
S
56 6 18
filterAddonsWithWcProducts()
S
57 6 18
updateCartSubitemsQuantityForCartItem()
S
57 6 17
setAddOnPriceOnCartSubitem()
S
61 6 13
isProductWithAddOns()
S
53 5 24
setAddOnCartItemData()
S
56 5 19
getProductOtherQuantityFromCart()
S
58 5 16
removeSubitemsForCartItem()
S
59 5 14
hasRequiredAddOns()
S
62 5 11
getProductSalePrice()
S
59 4 15
validateAddonNewCartQuantity()
S
57 3 15
injectSubitemProductNameForMiniCart()
S
67 3 8
filterOrderItemAddOnMetaForDisplay()
S
65 3 9
appendCssClassToCartItem()
S
66 3 8
addPostSkAddonCssClass()
S
70 3 6
registerHooks()
S
52 1 22
getProductRegularPrice()
S
65 2 9
isRequiredType()
S
78 2 3
disableRemoveLinkForCartSubitems()
S
67 2 8
disableQuantityInputForCartSubitems()
S
71 2 6
getAddOnOptionNameFromCartItem()
S
71 2 6
enqueueWcPriceScript()
S
62 1 11
formatOptionTitle()
S
74 1 4
getMultipleChoiceKeyName()
S
77 1 3
getSingleKeyName()
S
78 1 3
renderCssStyles()
S
74 1 4